package com.example.xpvideo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 首页顶部文字轮播
 * @TableName ls_data_carousel
 */
@TableName(value ="ls_data_carousel")
@Data
public class LsDataCarousel implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 文字轮播内容
     */
    @NotBlank(message = "请输入轮播文本")
    private String content;

    /**
     * logo
     */
    private String logo;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}